linear equation from table